import Vue from 'vue';
import VueRouter from 'vue-router';
import axios from 'axios'
Vue.prototype.$axios = axios;
//主体
import App from './components/app.vue';
import List from './components/list.vue';
import Info from './components/info.vue';
import Question from './components/question.vue';
//路由切换页面

//import Getjson from './components/getjson.vue'
//import Detail from './components/detail.vue'
//import Index from './components/index.vue'
//安装插件
Vue.use(VueRouter); //挂载属性
//创建路由对象并配置路由规则
let router = new VueRouter({
//  //routes
  routes: [{
         path: '/',
         component:List
    },
      {
        path: '/info',
        name:'info',
          component:Info
     },
       {
        path: '/question',
        name:'question',
          component:Question
     },
//		
//
 ]
});






//new Vue 启动
new Vue({
    el: '#app',
    router,
    render: c => c(App),
    // render: c => c(Getjson),
})